package org.jawa.core.jdbc.dialect;

public class MySQLDialect implements Dialect {

	public boolean supportsLimit() {
		return true;
	}

	@Override
	public String getLimitString(String sql, int offset, int limit) {
		StringBuilder stringBuilder = new StringBuilder(sql);
		stringBuilder.append(" limit ");
		if (offset > 0) {
			stringBuilder.append(offset).append(",").append(limit);
		} else {
			stringBuilder.append(limit);
		}
		return null;
	}

}
